// src/AppRoutes.tsx
import React from 'react';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
import Home from '@/pages/Home';
import Counter from '@/pages/Counter'; // 假设有一个主页组件
import Keepalive from '@/pages/Keepalive'; // 假设有一个关于页面组件
import BF_Appointment from '@/pages/promotion/BF_Appointment';
import SF_Appointment from '@/pages/promotion/SF_Appointment';

const VITE_BASE_URL = import.meta.env.VITE_BASE_URL || '';

const AppRoutes = () => (
  <BrowserRouter basename={VITE_BASE_URL}>
    <Routes>
      <Route path="/" element={<Home />} />
      <Route path="/bfAOpenAccount" element={<BF_Appointment />} />
      <Route path="/sfAOpenAccount" element={<SF_Appointment />} />
      <Route path="/Counter" element={<Counter />} />
      <Route path="/Keepalive" element={<Keepalive />} />
      {/* 可以添加更多路由 */}
    </Routes>
  </BrowserRouter>
);

export default AppRoutes;